package com.fsl.alibabanacosdiscoveryclientfeign.controller;

import com.fsl.alibabanacosdiscoveryclientfeign.fegin.FeginClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    FeginClient feginClient;

    @GetMapping("/test")
    public String test() {
        String result = feginClient.hello("yudd");
        return "Return : " + result;
    }

}
